package com.zjj.filmcommentapi.dao;

import com.zjj.filmcommentapi.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User record);

    int insertSelective(User record);
    /**
     * 查询数量
     * @param user
     * @return
     */
    int selectUserCount(User user);
    int updateUserStateById(User user);
    User selectUserByAccountPass(User user);
    List<User> selectUserList();
    User findUserById(User user);
    User findUserByAccount(User user);
}